package com.huaxin.hxenum.validation;

import com.huaxin.hxenum.validator.NotificationTypeValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = NotificationTypeValidator.class)
public @interface ValidNotificationType {
    String message() default "无效的通知方式，允许值：sms/app_push/email/in_system";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
